# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-recurring-ical-events
pkgver=2.1.2
pkgrel=0
pkgdesc="Python library for recurrence of ical events based on icalendar"
url="https://github.com/niccokunzmann/python-recurring-ical-events"
arch="noarch"
license="LGPL-3.0-only"
depends="python3 py3-icalendar py3-tz py3-tzdata py3-x-wr-timezone"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/niccokunzmann/python-recurring-ical-events/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/python-recurring-ical-events-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	# Disable unnecessary test that adds another dependency.
	pytest -v \
		--ignore test/test_readme.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
42c11a211539cf6e40903f9df8224e8dd1dd68fe4894aa0ab1c2660c69a95d4cd1d9f41aa918d5180568f8ca3eecace0d5b845d669d7e532d61a7fa1f5283fd6  py3-recurring-ical-events-2.1.2.tar.gz
"
